<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>复选框树</title>
<link href="../../css/bootstrap3.css" rel="stylesheet" media="screen">
<link href="../../css/koala_tree.css" rel="stylesheet"> 
<script src="../../js/jquery.js" type="text/javascript"></script>
<script src="../../common/jquery-ui.js" type="text/javascript"></script>
<script src="../../js/bootstrap.js" type="text/javascript" ></script>
<script src="../../lib/Koala_Tree.js" type="text/javascript"></script>
</head>
<body>
	<div class="container">
		<div class="tree" id="ex-tree-draggable" style="height: 600px;"></div>
	</div>
	<script type="text/javascript">
		$(function(){
			var data = [{"parentId":"root","menu":{"id":"001","title":"权限管理","href":"#"},"children":{"001001":{"parentId":"001","menu":{"id":"001001","title":"用户管理","href":"#"},"children":{"001001001":{"parentId":"001001","menu":{"id":"001001001","title":"添加新用户","href":"#"},"children":{}},"001001002":{"parentId":"001001","menu":{"id":"001001002","title":"系统用户查询","href":"#"},"children":{}}}},"001002":{"parentId":"001","menu":{"id":"001002","title":"角色管理","href":"#"},"children":{"001002001":{"parentId":"001002","menu":{"id":"001002001","title":"添加新角色","href":"#"},"children":{}},"001002002":{"parentId":"001002","menu":{"id":"001002002","title":"用户角色配置","href":"#"},"children":{}},"001002003":{"parentId":"001002","menu":{"id":"001002003","title":"角色权限配置","href":"#"},"children":{}}}},"001003":{"parentId":"001","menu":{"id":"001003","title":"菜单管理","href":"#"},"children":{}}}},{"parentId":"root","menu":{"id":"002","title":"系统管理","href":"#"},"children":{"002001":{"parentId":"002","menu":{"id":"002001","title":"功能配置","href":"#"},"children":{}},"002002":{"parentId":"002","menu":{"id":"002002","title":"系统访问记录","href":"#"},"children":{}}}},{"parentId":"root","menu":{"id":"003","title":"日志管理","href":"#"},"children":{"003001":{"parentId":"003","menu":{"id":"003001","title":"日志查询","href":"#"},"children":{}}}}];
			var dataSourceTree = {
				data: data,
				delay: 400
			};
			$('#ex-tree-draggable').tree({
				dataSource: dataSourceTree,
				loadingHTML: '<div class="static-loader">Loading...</div>',
				multiSelect: false,
				cacheItems: true,
				draggable:	true
			});
			
		})
	</script>

</body>
</html>